// 列表接口需要携带的参数类型
export interface RegistrationList {
    page?: number;
    page_size?: number;
    name?: string;
    number?: string;
    update_end_date?: string;
    update_start_date?: string;
    upload_end_date?: string;
    upload_start_date?: string;
    uploader?: string;
  }
  
  interface PackageData {
    asset_package_code?: string;
    asset_package_desc?: string;
    asset_package_name?: string;
    asset_package_version?: number;
  }
  
  interface FileData {
    id?: number;
    file_name?: string;
    file_url?: string;
  }
  
  // 查看报告
  export interface ViewExport {
    id: number;
    asset_package_data?: PackageData[];
    file_data?: FileData[] | any;
    report_name?: string;
    report_number?: string;
  }
  
  // 关联资产
  export interface PackageDataItem {
    asset_package_code?: string;
    asset_package_desc?: string;
    asset_package_name?: string;
    asset_package_version?: number;
  }


  // 资产列表
  export interface PackageList {
    code: string;
    create_time: string;
    create_user_name: string;
    describe: string;
    id: number;
    name: string;
    project_name: [];
    status: [];
    update_time: string;
    version: number;
  }

  // 资产列表参数
  export interface PackListItem {
    page: number;
    page_size: number;
    key: string;
  }

// 上传文件参数
export interface AddFileItem {
  asset_registration_id:number;
  file_name:string;
  file_sha_256:string;
}

// 上传报告参数
export interface AddRegisterItem {
  number:number;
  name:string;
  application_time:string;
  registration_time:string;
  certificate_no:string;
  certificate_hash:string;
  asset_package_relation: [],
  certificate_file: []
}